package com.thyme.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.thyme.system.entity.WytDriverEnterprise;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface WytDriverEnterpriseDao extends BaseMapper<WytDriverEnterprise> {

    @Select("SELECT * FROM wyt_driver_enterprise")
    IPage<WytDriverEnterprise> getAll(Page page);

    @Select("SELECT * FROM wyt_driver_enterprise where id=#{id}")
    WytDriverEnterprise getById(@Param("id")String id);

}
